Script: if objvalue = "open" then¬ global wdtempdate¬ wsset wdname,"1",KeyFilter,OnlyMath¬ wsset wdname,"2",KeyFilter,OnlyMath¬else if objno = "1" then¬ put wsget(wdname,"1",text) into wdtempdate¬ convert wdtempdate to short date¬ wsset wdname,"1",text,wdtempdate¬end if
Script: put wsget(wdname,2,text) into thisamm¬set numberformat to "0.00"¬put thisamm/1 into thisamm¬wsset wdname,"2",text,thisamm¬set numberformat to "0"
ItemType: POP
Rect: 300,33,319,48
TextFont: Geneva
TextSize: 10
Name: TransType
ItemType: TEXT
Rect: 80,60,367,90
TextFont: Geneva
TextSize: 10
Name: Description
LockText: FALSE
TextStyle: Bold
ItemType: PUSH
Rect: 291,103,363,120
TextFont: Geneva
TextSize: 10
Name: OK
DefaultItem: TRUE
Script: put wsget(wdname,1,text) into wsthedate¬put wsget(wdname,2,text) into wstheamm¬put wsget(wdname,4,text) into wsthedesc¬if wsthedate is not a date then¬ hide window wdname¬ beep¬ answer "Invalid date entered !"¬ show window wdname¬else if checkdate(wsthedate) <> true then¬ hide window wdname¬ beep¬ answer "Date not valid for this statement !"¬ show window wdname¬else if wstheamm < 0.01 then¬ hide window wdname¬ beep¬ answer "Invalid ammount entered !"¬ show window wdname¬else if wsthedesc = "" then¬ hide window wdname¬ beep¬ answer "Enter a description !"¬ show window wdname¬else¬ wssend wdname,0,close¬end if¬